package zuul.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;
import zuul.gateway.filter.AccessFilter;

/**
 * Create by Vic Xu on 2019/3/4
 */
@SpringCloudApplication
@EnableZuulProxy
public class Application {

    @Bean
    public AccessFilter accessFilter() {
        return new AccessFilter();
    }

    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}
